
import request from '@/utils/request'

/***************************************************** common ****************************************************/

/**
 * 获取配置
 */
export const getConfigApi: IGetConfigApi = function(key) {
    return request.get(`htscrm/site_system_config/info/${key}`) as ReturnType<IGetConfigApi>
}

/**
 * 获取配置
 */
export const getAdminConfigApi: IGetConfigApi = function(key) {
    return request.get(`htscrm/admin/site_system_config/${key}`) as ReturnType<IGetConfigApi>
}


/**
 * 修改密码
 */
export const updatePasswordApi: IUpdatePasswordApi = function(data) {
    return request.post(`htscrm/admin/update_password`, data) as ReturnType<IUpdatePasswordApi>
}

